export GPERF_INSTALL_HNP_PATH=${HNP_PUBLIC_PATH}/gperf.org/gperf.3.2.1


export CC="${COMPILER_TOOLCHAIN}clang --target=aarch64-linux-ohos"
unset CPP

./autogen.sh
autoreconf -vif

./configure \
    --prefix=${GPERF_INSTALL_HNP_PATH} \
    --host=aarch64-linux-ohos \
    --disable-doc

make VERBOSE=1 

export CC="${COMPILER_TOOLCHAIN}clang"
export CPP=${CXX}

mkdir -p ${GPERF_INSTALL_HNP_PATH}/bin

cp src/gperf ${GPERF_INSTALL_HNP_PATH}/bin/
cp hnp.json ${GPERF_INSTALL_HNP_PATH}/
pushd ${GPERF_INSTALL_HNP_PATH}/../
    ${HNP_TOOL} pack -i ${GPERF_INSTALL_HNP_PATH} -o ${ARCHIVE_PATH}/
    tar -zvcf ${ARCHIVE_PATH}/ohos_gperf.3.2.1.tar.gz gperf.3.2.1/
popd